package com.dunjx.user.pojo;

import io.swagger.annotations.*;
import lombok.*;

import javax.persistence.*;
import java.io.Serializable;

/****
 * @Author:admin
 * @Description:RegionCity构建
 * @Date 2019/6/14 19:13
 *****/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "地区表",value = "RegionCity")
@Table(name="region_city")
public class RegionCity implements Serializable{

	@ApiModelProperty(value = "地区id",required = false)
	@Id
    @Column(name = "id")
	private Integer id;//地区id

	@ApiModelProperty(value = "地区编码",required = false)
    @Column(name = "code")
	private String code;//地区编码

	@ApiModelProperty(value = "地区名称",required = false)
    @Column(name = "name")
	private String name;//地区名称

	@ApiModelProperty(value = "父id",required = false)
    @Column(name = "parentId")
	private Integer parentId;//父id


}
